package cn.csc.module.shoppingCard.api.transaction.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDateTime;

/**
* 交易记录创建 DTO
* 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
*/
@Data
public class CardTransactionRespDTO {


    @ApiModelProperty(value = "关联的卡号")
    private BigInteger id;;

    @ApiModelProperty(value = "项目ID")
    private BigInteger projectId;

    @ApiModelProperty(value = "关联的卡号")
    private BigInteger cardId;

    @ApiModelProperty(value = "交易类型（1-充值，2-消费，3-退款，4-冻结，5-解冻）")
    private Byte txnType;

    @ApiModelProperty(value = "交易金额（正数表示收入，负数表示支出）")
    private BigDecimal amount;

    @ApiModelProperty(value = "状态(0-创建，1-完成)")
    private Byte status;

    @ApiModelProperty(value = "关联的订单号")
    private BigInteger relatedOrder;

    @ApiModelProperty(value = "关联的订单子项ID")
    private BigInteger relatedOrderItem;

    @ApiModelProperty(value = "交易时间")
    private LocalDateTime txnTime;

    @ApiModelProperty(value = "备注（如充值渠道、消费商户信息）")
    private String remark;
}
